#include <stdio.h>

int main(int argc, char const *argv[])
{
	int a[10] = {1,2,3,4,5,6,7,8,9,10};
	//定义一个指针,指向首元素

	int *p = a;
	p = &a[0];
	int n = sizeof(a)/sizeof(*a);
	printf("%p\n", p);
	int i = 0;
	for (int i = 0; i < n; ++i)
	{
		printf("%d\n", *p);
		p++;
	}
	printf("\n");
	return 0;
}